{% extends 'base.html' %}

{% block title %}
 - 图书详情
{% endblock %}


{% block content %}
<form action="{% url 'delete' %}" method="post">
    <input type="hidden" name="id" value="{{ book.0 }}">
  <div class="form-group row">
    <label for="name" class="col-sm-2 col-form-label">图书名称</label>
    <div class="col-sm-10">
      <span class="form-control">{{ book.1 }}</span>
    </div>
  </div>
  <div class="form-group row">
    <label for="author" class="col-sm-2 col-form-label">图书作者</label>
    <div class="col-sm-10">
      <span class="form-control">{{ book.2 }}</span>
    </div>
  </div>
  <button type="submit" class="btn btn-primary">删除图书</button>
</form>
{% endblock %}